System.Collections.IDictionary.Item Property

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Gets the value associated with a given key. When getting a value, if this key is not found in the collection, then null is returned. If the key is not of the correct type for this dictionary, null is returned.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private Object IDictionary.Item[
	Object key
]{ get; set;}
Visual Basic (Declaration)
Private Property System.Collections.IDictionary.Item ( _
	key As Object _
) As Object Implements IDictionary.Item
Visual C++
private:
virtual property Object^ System.Collections.IDictionary.Item[Object^ key] {
	Object^ get (Object^ key) sealed = IDictionary::Item::get;
	void set (Object^ key, Object^ value) sealed = IDictionary::Item::set;
}

Parameters

key
Object

Field Value

The value associated with the key, or null if the key was not present.

Exceptions

ExceptionCondition
System..::NotSupportedExceptionAlways thrown from the set accessor, indicating that the dictionary is read only.

See Also